import { $t } from "@/plugins/i18n";
import { accountSetting } from "@/router/enums";

export default {
  path: "/accountSetting",
  redirect: "/accountSetting/profile",
  meta: {
    title: $t("menus.pureAccountSetting"),
    icon: "ep:histogram",
    rank: accountSetting
  },
  children: [
    {
      path: "/accountSetting/profile",
      component: () => import("@/views/account-settings/profile.vue"),
      name: "Profile",
      meta: {
        title: $t("menus.pureAccountProfile"),
        keepAlive: true
      }
    },
    {
      path: "/accountSetting/password",
      component: () => import("@/views/account-settings/password.vue"),
      name: "Password",
      meta: {
        title: $t("menus.pureAccountModify"),
        keepAlive: true
      }
    }
  ]
} satisfies RouteConfigsTable;
